package com.facebookproject.graph.element;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

public class Elements implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id;
	String name;
	String ele1;//work
	String ele2;//education
	String ele3;//friends
	String ele4;//friends
	public Elements(String id,String name, String ele1, String ele2, String ele3, String ele4) {
		this.id = id;
		this.name = name;
		this.ele1 = ele1;
		this.ele2 = ele2;
		this.ele3 = ele3;
		this.ele4 = ele4;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getEle1() {
		return ele1;
	}
	public void setEle1(String ele1) {
		this.ele1 = ele1;
	}

	public String getEle2() {
		return ele2;
	}
	public void setEle2(String ele2) {
		this.ele2 = ele2;
	}
	public String getEle3() {
		return ele3;
	}
	public void setEle3(String ele3) {
		this.ele3 = ele3;
	}
	public String getEle4() {
		return ele4;
	}
	public void setEle4(String ele4) {
		this.ele4 = ele4;
	}

	public void getData(JSONObject json){

		try {
			this.id = json.getString("id");
		} catch (JSONException e) {
			e.printStackTrace();
		}

	}
}
